﻿using System.Collections.Generic;

namespace CoreEx.Database.Client
{
    /// <summary>
    /// Represents a class that is capable of providing a list of available connections.
    /// </summary>
    public interface IConnectionInfoProvider
    {
        /// <summary>
        /// Returns a list of <see cref="IConnectionInfo"/> instances that describes the 
        /// connections available to the client.
        /// </summary>
        /// <returns>An <see cref="IEnumerable{T}"/> instance that containing available <see cref="IConnectionInfo"/> instances.</returns>
        IEnumerable<IConnectionInfo> GetConnections();
    }
}
